package org.xcorpio.java8.chapter05;

import java.util.Arrays;
import java.util.List;

public class HelloDisctinct {
    public static void main(String[] args) {
        List<Integer> numbers = Arrays.asList(1,2,1,3,3,2,4);
        numbers.stream()
               .filter(i -> i % 2 == 0)
               .distinct()
               .forEach(System.out::println);
    }
}
